// 模块化引入   相当于Vue的scoped
import { Suspense, } from "react"
import styles from "./index.module.scss"

const WITH_LOADING_COMPONENT = (coment:JSX.Element) => (
    <Suspense fallback={<div className={ styles.box }>Loading...</div>} >
        { coment }
    </Suspense>
)

export default WITH_LOADING_COMPONENT